package com.cc.com;

import lombok.Getter;

@Getter
public enum HttpStatusEnum {
    OK(200, "请求成功"),
    BAD_REQUEST(400, "请求参数错误"),
    NOT_FOUND(404, "请求资源不存在"),
    INTERNAL_SERVER_ERROR(500, "服务器内部错误");


    private final Integer code;
    private final String message;


    HttpStatusEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

}
